<%--
    Document   : SearchBody
    Created on : May 10, 2011, 5:43:44 PM
    Author     : Emyzzz
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>


<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Our Search Page</title>
    </head>
    <body>
        <div id="page-body">
            <p class="right">It is currently Mon Apr 18, 2011 1:51 pm</p>

            <%------------------------------------------------------------------------------------- --%>
            <h1>Categories:</h1>
            <logic:iterate name="categories"  id="cat">
                
                <html:link action="/body.do" paramId="category" paramName="cat" paramProperty="categoryId" >
                    <font size="3">  <bean:write name="cat" property="name"></bean:write> </font>
                    </html:link>
                <br/>
            </logic:iterate>
            <h1>Forums:</h1>
            <logic:iterate name="forums" id="forums">
                <html:link action="/forum.do" paramName="forums" paramProperty="forumId" paramId="forumId">
                  <font size="3">  <bean:write name="forums" property="name"></bean:write> </font>
                </html:link>
                <br/>
            </logic:iterate>

            <h1>Threads:</h1>
            <logic:iterate name="threads" id="thread">
                <bean:define name="thread" property="forum" id="forum"/>
                <a href="thread.do?threadid=<bean:write name="thread" property="threadId"/>&forumId=<bean:write name="forum" property="forumId"/>">
                    <font size="3">   <bean:write name="thread" property="title"></bean:write> </font>
                </a>
                <br/>
            </logic:iterate>
            <h1>Posts:</h1>
            <logic:iterate name="posts" id="post">
                <bean:define name="post" property="thread" id="thread"/>
                <bean:define name="thread" property="forum" id="forum"/>
                <a href="thread.do?threadid=<bean:write name="thread" property="threadId"/>&forumId=<bean:write name="forum" property="forumId"/>">
                    <font size="3">   <bean:write name="post" property="title"></bean:write> </font>
                </a>
                <br/>
            </logic:iterate>
        </div>
    </body>
</html>
